using BlogExample.Core.Domain;
using BlogExample.Core.Services;

namespace BlogExample.Controllers.Home
{
	public class HomeController
	{
		private readonly IDisplayService _displayService;

		public HomeController(IDisplayService displayService)
		{
			_displayService = displayService;
		}

		public HomeViewModel Home(HomeInputModel input)
		{
			var course = _displayService.GetDisplayFor(new Course() { Name = "Lance", Identifier = "1005"});
			return new HomeViewModel { Text = course };
		}
	}

	public class HomeInputModel 
	{
	}

	public class HomeViewModel
	{
		public string Text { get; set; }
	}
}